package com.jiedeng.dao;

import com.jiedeng.model.Period;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author 覃远龙
 * @ClassName: IPeriodRepository
 * @Description:
 * @date 2017/4/18 15:18
 */
public interface IPeriodRepository extends JpaRepository<Period, Long> {

    List<Period> findByParent(long parent);
    List<Period> findBySpecId(int specId);

    List<Period> findBySpecIdAndPropId(int specId,int propId);
    List<Period> findByParentAndPropId(long parent,int propId);
}
